package webdev.dto;

import android.os.Parcel;
import android.os.Parcelable;

public class BootKingDTO implements Parcelable {

	private int id;
	private String userName;
	private String namePlace;
	private String timeArrive;
	private String timeLeave;
	private String note;

	public static final Parcelable.Creator<BootKingDTO> CREATOR = new Creator<BootKingDTO>() {
		
		@Override
		public BootKingDTO[] newArray(int size) {
			return new BootKingDTO[size];
		}
		
		@Override
		public BootKingDTO createFromParcel(Parcel in) {
			return new BootKingDTO(in);
		}
	};

	public BootKingDTO() {}
	
	public BootKingDTO(Parcel in) {
		id = in.readInt();
		userName = in.readString();
		namePlace = in.readString();
		timeArrive = in.readString();
		timeLeave = in.readString();
		note = in.readString();
	}

	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getNameUser() {
		return userName;
	}
	public void setNameUser(String idUser) {
		this.userName = idUser;
	}
	public String getNamePlace() {
		return namePlace;
	}
	public void setNamePlace(String idPlace) {
		this.namePlace = idPlace;
	}
	public String getTimeArrive() {
		return timeArrive;
	}
	public void setTimeArrive(String timeArrive) {
		this.timeArrive = timeArrive;
	}
	public String getTimeLeave() {
		return timeLeave;
	}
	public void setTimeLeave(String timeLeave) {
		this.timeLeave = timeLeave;
	}
	public String getNote() {
		return note;
	}
	public void setNote(String note) {
		this.note = note;
	}
	@Override
	public int describeContents() {
		return 0;
	}
	@Override
	public void writeToParcel(Parcel dest, int arg1) {
		dest.writeInt(id);
		dest.writeString(userName);
		dest.writeString(namePlace);
		dest.writeString(timeArrive);
		dest.writeString(timeLeave);
		dest.writeString(note);
	}
}
